/*
 * Copyright (c) GoKeep by gokeep.org. 2022-2023. All rights reserved
 */
package org.gokeep.common.repository;

import org.gokeep.common.document.UserExtend;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserExtendRepository extends MongoRepository<UserExtend, String> {
    /**
     * 根据用户ID获取扩展信息
     *
     * @param userId
     * @return
     */
    UserExtend findByUserId(String userId);

    /**
     * 根据用户ID列表查询扩展信息
     *
     * @param userIds
     * @return
     */
    List<UserExtend> findByUserIdIn(List<String> userIds);
}
